<layout name="layout" />
<div class="pageheader">
	<h1 class="pagetitle">
		<a href="/" class="linkWay">首页/新增卡位</a>
		&nbsp;<span class="divider">»</span>&nbsp;
		<a href="/shortcut/ranking_choose" class="linkWay choosse_ranking">选择卡位</a>
		&nbsp;<span class="divider">»</span>&nbsp;
		<a href="javascript:" class="linkWay previous_page">选择需要卡位的计划</a>
		&nbsp;<span class="divider">»</span>&nbsp;
		<a href="#" class="currentWay">选择需要卡位的推广组</a>
	</h1>
</div>

<div id="contentwrapper" class="contentwrapper nopadding">
	<div class="main">
		<div id="table_datepicker" style="float:right;margin-bottom:10px;"></div>
		<div id="adgroup_report">

		</div>
		<div class="stdbtnBox" style="text-align: center">
			<button class="stdbtn previous_page"  style="background:#229fdd;color:#fff;padding:8px 30px;margin-right: 15px;">上一步</button>
			<button class="stdbtn next_step" style="background:#229fdd;color:#fff;padding:8px 30px;">下一步</button>
		</div>
	</div>
</div>
<include file="{APP_PATH}Template/Adgroup/adgroup_reporter.html" />
<script>
	var campaign_id = '{$campaign_id}', device = '{$device}',adgroup_id = '{$adgroup_id}';
	$(document).ready(function(){
		var data = {device: device};
		if(campaign_id){
			data.campaign_id = parseInt(campaign_id, 10);
		}
		if(adgroup_id){
			data.adgroup_id = parseInt(adgroup_id, 10);
		}
		adgroups = ranking.adgroups($(document.body), data);
		adgroups.init();
	});
</script>